Update dependency ruflin/elastica to v9 #396
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^7.3.2->^9.0.0Release Notes
ruflin/Elastica (ruflin/elastica)
v9.0.0Compare Source
Backward Compatibility Breaks
Elastica\IndexTemplatenow works only with new_index_templateAPI. You should useElastica\Templateto use the deprecated API #2274$methodargument from theElastica\SearchableInterface::searchandElastica\SearchableInterface::countas they are not unused anymore. The following classes are affected:Elastica\SearchandElastica\Index#2256Elastica\Requestclass as constants are not used anymore and no longer needed. #2256Added
Changed
Fixed
Elastica\Query\BoolQuery::toArrayno longer changes$this->_paramsto \stdClass when empty #2241> 0to>= 0#2278v8.2.0Compare Source
Added
useLegacy = false#2257Deprecated
Elastica\Templatebecause it's deprecated since version 7.8 on ElasticSearch #2257Fixed
Elastica\Query\BoolQuery::toArrayno longer changes$this->_paramsto \stdClass when empty #2241> 0to>= 0#2278New Contributors
Full Changelog: ruflin/Elastica@8.1.0...8.2.0
v8.1.0Compare Source
Added
bool_prefix#2220addRangeusing a common trait #2227Fixed
v8.0.0Compare Source
This a major release with breaking changes.
Have a look at the Upgrade guide.
Backward Compatibility Breaks
Elastica\Exception\ElasticsearchException-> useElastica\Exception\ResponseException::getResponse()::getFullError()insteadElastica\Exception\ResponseException::getElasticsearchException()-> useElastica\Exception\ResponseException::getResponse()::getFullError()insteadElastica\Processor\Append-> useElastica\Processor\AppendProcessorinsteadElastica\Processor\Attachment-> useElastica\Processor\AttachmentProcessorinsteadElastica\Processor\Convert-> useElastica\Processor\ConvertProcessorinsteadElastica\Processor\Date-> useElastica\Processor\DateProcessorinsteadElastica\Processor\DateIndexName-> useElastica\Processor\DateIndexNameProcessorinsteadElastica\Processor\DotExpander-> useElastica\Processor\DotExpanderProcessorinsteadElastica\Processor\Fail-> useElastica\Processor\FailProcessorinsteadElastica\Processor\Join-> useElastica\Processor\JoinProcessorinsteadElastica\Processor\Json-> useElastica\Processor\JsonProcessorinsteadElastica\Processor\Kv-> useElastica\Processor\KvProcessorinsteadElastica\Processor\Lowercase-> useElastica\Processor\LowercaseProcessorinsteadElastica\Processor\Remove-> useElastica\Processor\RemoveProcessorinsteadElastica\Processor\Rename-> useElastica\Processor\RenameProcessorinsteadElastica\Processor\Set-> useElastica\Processor\SetProcessorinsteadElastica\Processor\Sort-> useElastica\Processor\SortProcessorinsteadElastica\Processor\Split-> useElastica\Processor\SplitProcessorinsteadElastica\Processor\Trim-> useElastica\Processor\AppendProcessorinsteadElastica\Processor\Uppercase-> useElastica\Processor\UppercaseProcessorinsteadElastica\Query\Common-> useElastica\Query\MatchQueryinsteadElastica\QueryBuilder\DSL\Query::common_terms()-> useElastica\QueryBuilder\DSL\Query::match()insteadElastica\Transport\HttpAdapter-> useElastica\Transport\HttpinsteadElastica\Aggregation\Range::setKeyedResponse()-> useElastica\Aggregation\Range::setKeyed()insteadElastica\Bulk::toString()-> useElastica\Bulk::__toString()or cast to string insteadElastica\Query\MatchQuery::setFieldCutoffFrequency()Elastica\Query\MultiMatch::setCutoffFrequency()Elastica\QueryBuilder\DSL\Aggregation::global_agg()-> useElastica\QueryBuilder\DSL\Aggregation::global()insteadElastica\Request::toString()-> useElastica\Request::__toString()or cast to string insteadElastica\Result::getType()Elastica\Suggest\Phrase::addCandidateGenerator()-> useElastica\Suggest\Phrase::addDirectGenerator()insteadElastica\Util::getParamName()Elastica\Aggregation\AvgBucket: The second argument$bucketsPathis now mandatoryElastica\Aggregation\BucketScript: The second (array $bucketsPath) and the third (string $script) argument are now mandatoryElastica\Aggregation\BucketSelector: The second (array $bucketsPath) and the third (string $script) argument are now mandatoryElastica\Aggregation\Derivative: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\NormalizeAggregation: The second (string $bucketsPath) and the third (string $method) argument are now mandatoryElastica\Aggregation\PercentilesBucket: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\SerialDiff: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\StatsBucket: The second argument (string $bucketsPath) is now mandatoryElastica\Aggregation\SumBucket: The second argument (string $bucketsPath) is now mandatoryElastica\Cluster\Health::getActiveShardsPercentAsNumber()method tofloat#2144$originand$scaleparameter types ofElastica\Query\FunctionScore::addDecayFunction()to allowfloat|int|string#2144$keyparameter type ofElastica\Multi\Search::addSearch()to allowint|string|null#2144$optionsparameter type ofElastica\Index::create()to only allowarray<string, mixed>#2147Elastica\Reindex::setWaitForCompletion()to only allowbool#2151Elastica\Search::addIndex(),Elasica\Search::addIndices()andElastica\Search::hasIndex()parameter type to only allowElastica\Index#2150$optionsargument to not acceptintin the following methods #2148Elastica\SearchableInterface::search()Elastica\SearchableInterface::createSearch()Elastica\Search::search()Elastica\Search::createSearch()Elastica\Search::setOptionsAndQuery()Elastica\Index::search()Elastica\Index::createSearch()Elastica\ConnectionElastica\Connection\ConnectionPoolElastica\Connection\Strategy\CallbackStrategyElastica\Connection\Strategy\RoundRobinElastica\Connection\Strategy\SimpleElastica\Connection\Strategy\StrategyFactoryElastica\Connection\Strategy\StrategyInterfaceElastica\Client::setLogger()method #2148strict_typeson all classes #2190Elastica\Scroll:clearto usescroll_idbody parameter instead of url parameter #2211Added
@throwsannotations to Client::request and related methods #2152retry_on_conflictfrom Client configuration in Bulk updates (ported from 7.x #2184)Changed
php-cs-fixerto3.13.2#2143matchexpression #2141Removed
nyholm/dsnas no longer needed.symfony/deprecation-contractsas no longer needed.Fixed
Elastica\Queryto work with psalm & expand theaggstype to include raw arraysConfiguration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.